using System;

namespace RemoteController
{
	/// <summary>
	/// Summary description for LightOnCommand.
	/// </summary>
	public class LivingroomLightOffCommand : Command
	{
		Light light;

		public LivingroomLightOffCommand(Light light)
		{
			this.light = light;
		}

		#region Command Members

		public object Execute()
		{
			return light.Off();
		}
		
		public object Undo()
		{
			return light.On();
		}

		#endregion
	}
}
